﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kernelx.Contexts.Defaults
{
    /// <summary>
    /// 
    /// </summary>
    public interface ISequeGenerator
    {

        /// <summary>
        /// 获取指定目标的最新序列值
        /// </summary>
        /// <param name="target"></param>
        /// <param name="args">可传递约定的参数</param>
        /// <returns></returns>
        string Get(string target, object args = null);

        /// <summary>
        /// 查询指定目标是否已注册序列生成规则
        /// </summary>
        /// <param name="target"></param>
        /// <returns></returns>
        bool IsRegistered(string target);


    }
}
